import request from '@/utils/request'
/** 隐患排查清单 */
// 查询隐患排查清单列表
export function listCheckList(data) {
    return request({
      url: '/hidden/check/list/list',
      method: 'post',
      data: data
  })
}


// 创建隐患排查清单
export function addCheckList(data) {
    return request({
      url: '/hidden/check/list',
      method: 'post',
      data: data
  })
}

// 删除隐患排查清单
export function deleteCheckList(listId) {
    return request({
      url: '/hidden/check/list/'+listId,
      method: 'delete',      
    })
  } 
  // 修改隐患排查清单
export function updateCheckList(data) {
    return request({
      url: '/hidden/check/list',
      method: 'put',
      data: data
    })
  }
  // 查询隐患排查清单详细信息
export function getCheckList(listId) {
    return request({
      url: '/hidden/check/list/' + listId,
      method: 'get'
    })
  } 

    // 修改隐患排查清单
export function changeCheckListStatus(data) {
    return request({
      url: '/hidden/check/list/status',
      method: 'put',
      data: data
    })
  }